import { createApp } from 'vue'
// 导入全局样式
import './styles/index.scss'

import App from './App.vue'
import router from './router'

// 引入 pinia
import store from './stores'
// 登录鉴权
import './permission'

// 引入图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(store)
app.use(router)

app.mount('#app')
